package com.fenghongzhang.a1810.mvp.view;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Toast;

import com.fenghongzhang.a1810.R;
import com.fenghongzhang.a1810.mvp.component.DaggerFoodComponent;
import com.fenghongzhang.a1810.mvp.contract.FoodContract;
import com.fenghongzhang.a1810.mvp.model.FoodModel;
import com.fenghongzhang.a1810.mvp.module.FoodModule;
import com.fenghongzhang.a1810.mvp.presenter.FoodPresenter;

import java.util.List;

public class FoodActivity extends BaseActivity<FoodPresenter> implements FoodContract.IFoodView {


    @Override
    public void initAdapter(List<String> food) {

    }

    @Override
    public int bindLayout() {
        return R.layout.activity_food;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
//        mPresenter = new FoodPresenter(new FoodModel(), this);

        DaggerFoodComponent.builder().foodModule(new FoodModule(this)).build().inject(this);
        String data = mPresenter.getData();
        Toast.makeText(this, data, Toast.LENGTH_SHORT).show();

    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }
}
